package com.larissa.android.quiz;

import androidx.annotation.NonNull;

import java.util.UUID;

public class Question {
    private UUID questionId;
    private String questionText;
    private String questionAnswer;

    public Question(String text,String answer){
        questionText=text;
        questionAnswer=answer;
    }

    public Question(UUID questionId, String questionText, String questionAnswer){
        this.questionId=questionId;
        this.questionAnswer=questionAnswer;
        this.questionText=questionText;
    }

    public UUID getQuestionId() {
        return questionId;
    }

    public void setQuestionId(UUID questionId) {
        this.questionId = questionId;
    }

    public String getQuestionText() {
        return questionText;
    }

    public void setQuestionText(String questionText) {
        this.questionText = questionText;
    }

    public String getQuestionAnswer(){return questionAnswer;}

    public void setQuestionAnswer(String questionAnswer) {
        this.questionAnswer = questionAnswer;
    }

    @NonNull
    @Override
    protected Question clone() throws CloneNotSupportedException {
        Question question=new Question(questionText,questionAnswer);
        return question;
    }
}